﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Common;

namespace ZhccPua
{
    public partial class RegForm : Form
    {
        public RegForm()
        {
            InitializeComponent();

            AppendLog(Utility.MachineCodeSec);
        }

        private void AppendLog(string str)
        {
            rtbResultCode.AppendText(String.Format("\r\n{0}\r\n", str));
        }
        private void button1_Click(object sender, EventArgs e)
        {
            AppendLog(Security.EncryptDES(tbmcode.Text, tbKey.Text));

            /*
             生成加密的机器码！
             
             */

            //bool isok = false;

            //rtbResultCode.AppendText(Security.DecryptDES(tbmcode.Text, tbKey.Text, out isok) + "\r\n");
        }

        private void button2_Click(object sender, EventArgs e)
        {
             
            ZhccMainForm a = new ZhccMainForm();
            a.Show();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            ClientRegForm cr = new ClientRegForm();
            cr.Show();
        }
 

    }
}
